package com.gpipe.tools;

import com.gpipe.properties.InputProperties;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * Created by admin on 2017/8/28.
 */
public class AmountInOutSum {

    private String lacCi;
    private String b_area_id;
    private String m_area_id;
    private String s_area_id;
    private String b_area_name;
    private String m_area_name;
    private String s_area_name;
    private AtomicInteger amountInSum = new AtomicInteger(0);
    private AtomicInteger amountOutSum = new AtomicInteger(0);

    public AmountInOutSum(String lacCi, String amountInSum, String amountOutSum) {
        setLacCi(lacCi);
        this.amountInSum = new AtomicInteger(Integer.parseInt(amountInSum));
        this.amountOutSum = new AtomicInteger(Integer.parseInt(amountOutSum));
    }

    public void setLacCi(String lacCi) {
        this.lacCi = lacCi;

        BaseAreaModel bam = InputProperties.baseArea.get(lacCi);
        if (bam != null) {
            this.b_area_id = bam.getB_area_id();
            this.m_area_id = bam.getM_area_id();
            this.s_area_id = bam.getS_area_id();
            this.b_area_name = bam.getB_area_name();
            this.m_area_name = bam.getM_area_name();
            this.s_area_name = bam.getS_area_name();
        }
    }


    public String getLacCi() {
        return lacCi;
    }

    public String getB_area_id() {
        return b_area_id;
    }

    public void setB_area_id(String b_area_id) {
        this.b_area_id = b_area_id;
    }

    public String getM_area_id() {
        return m_area_id;
    }

    public void setM_area_id(String m_area_id) {
        this.m_area_id = m_area_id;
    }

    public String getS_area_id() {
        return s_area_id;
    }

    public void setS_area_id(String s_area_id) {
        this.s_area_id = s_area_id;
    }

    public String getB_area_name() {
        return b_area_name;
    }

    public void setB_area_name(String b_area_name) {
        this.b_area_name = b_area_name;
    }

    public String getM_area_name() {
        return m_area_name;
    }

    public void setM_area_name(String m_area_name) {
        this.m_area_name = m_area_name;
    }

    public String getS_area_name() {
        return s_area_name;
    }

    public void setS_area_name(String s_area_name) {
        this.s_area_name = s_area_name;
    }

    public AtomicInteger getAmountInSum() {
        return amountInSum;
    }

    public void setAmountInSum(AtomicInteger amountInSum) {
        this.amountInSum = amountInSum;
    }

    public AtomicInteger getAmountOutSum() {
        return amountOutSum;
    }

    public void setAmountOutSum(AtomicInteger amountOutSum) {
        this.amountOutSum = amountOutSum;
    }
}
